﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caliburn.Core;
using Caliburn.PresentationFramework.ApplicationModel;
using System.Disposables;

namespace PCUserTimer.ViewModels
{
    public class WorkViewModel : ActivityViewModelBase
    {
        public WorkViewModel(int minutes)
            : base(minutes)
        {
        }

        public override string Status
        {
            get { return string.Format(@"Next break in {0}, at {1:HH:mm}", ObjectFormatter.Format(EndsAt - DateTimeOffset.Now), EndsAt); }
        }

        public override bool FinishWhenLapsed
        {
            get { return true; }
        }
    }
}
